<div class="panel panel-default" ng-controller="StartListCtrl">
	<div class="panel-heading">
		订票管理 / 起始站点
	</div>
	<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
	<div class="row wrapper m-n">
		<form class="bs-example form-horizontal ng-pristine ng-valid">
			<div class="form-group col-md-4">
				<div class="col-md-11">
					<input type="text" ng-model="queryMap.code" class="form-control" placeholder="助记码">
				</div>
			</div>
			<div class="form-group col-md-4">
				<div class="col-md-11">
					<input type="text" ng-model="queryMap.name" class="form-control" placeholder="站点名称">
				</div>
			</div>
			<div class="form-group col-md-4">
				<div class="col-md-11">
					<button type="button" class="btn btn-info" ng-click="query()">查询</button>
				</div>
			</div>
		</form>
	</div>
	<div class="table-responsive">
		<table class="table table-striped b-t b-light">
			<thead>
				<tr>
					<th style="width:10px;">
						<label class="i-checks m-b-none" has-authority="BOOKING_START_DEL">
							<input type="checkbox"   ng-model="ckAll"  ng-click="checkAll(ckAll,dataList)" ><i></i>
						</label>
					</th>
					<th style="width:70px;">站点编号</th>
					<th style="width:70px;">助记码</th>
					<th style="width:100px;">站点名称</th>
					<th style="width:70px;">区域码</th>
					<th style="width:50px;">省</th>
					<th style="width:50px;">市</th>
					<th style="width:50px;">区</th>
					<th style="width:100px;">站点地址</th>
					<th style="width:70px;">保险记账编号</th>
					<th style="width:80px;">
						<a href tooltip="添加站点" has-authority="BOOKING_START_ADD"><i class="fa fa-plus fa-fw m-r-xs" ng-click="write('lg',null,'insert')"></i></a>
						<a href tooltip="批量删除" has-authority="BOOKING_START_DEL"><i class="fa fa-times fa-fw" ng-click="del('sm',start,'deleteAll')" ></i></a>
					</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="start in dataList">
					<td>
						<label class="i-checks m-b-none" has-authority="BOOKING_START_DEL">
							<input id="{{start.ic}}" name="checks" type="checkbox" ng-checked="ckAll"  ng-model="checks"  ng-click="check(start.id,checks)"  ><i></i>
						</label>
					</td>
					<td>{{start.stationNo}}</td>
					<td>{{start.code}}</td>
					<td>{{start.name}}</td>
					<td>{{start.areaCode}}</td>
					<td>{{start.province}}</td>
					<td>{{start.city}}</td>
					<td>{{start.district}}</td>
					<td>{{start.address}}</td>
					<td>{{start.insuranceNo}}</td>
					<td>
						<div class="row list-icon">
							<div>
								<a href tooltip="热门站点设置" has-authority="BOOKING_START_POPULAR"><i class="fa fa-edit" ng-click="populars('lg',start,'popular')" ></i></a>
								<a href tooltip="修改" has-authority="BOOKING_START_UPDATE"><i class="fa fa-pencil fa-fw m-r-xs" ng-click="write('lg',start,'update')" ></i></a>
								<a href tooltip="删除" has-authority="BOOKING_START_DEL"><i class="fa fa-times fa-fw" ng-click="del('sm',start,'delete')" ></i></a>
								<a href tooltip="生成快速下单二维码" has-authority="BOOKING_START_QR"><i class="fa fa-qrcode" ng-click="qr(start)" ></i></a>
								<a href tooltip="二维码生成记录" has-authority="BOOKING_START_QR_LIST" ui-sref="app.booking.qrcode({startId: start.id})" target="_blank"><i class="fa fa-book"></i></a>
							</div>
						</div>
					</td>
				</tr>
				<tr ng-show="dataList==''">
					<td colspan="10" style="text-align: center;">暂无起始站点信息</td>
				</tr>
			</tbody>
		</table>
	</div>
	<page-footer/>
</div>